FROM openjdk:8
#设置工作目录
WORKDIR /workspace

#COPY ./wms-app-1.0-SNAPSHOT.jar /workspace/app.jar
ADD target/wms-app-1.0-SNAPSHOT.jar /workspace/app.jar
#配置容器暴漏的端口
EXPOSE 8080

#查看是否已经copy进去
RUN  ls
# java App
ENTRYPOINT ["java","-jar","app.jar"]